#include <iostream>
#include <iomanip>
#include <stdio.h>

#include "Products.h"

using namespace std;

Products::Products() {

}

Products::Products(string pid, string brand, int stock, int price) {
	setPid(pid);
	setBrand(brand);
	setStock(stock);
	setPrice(price);
}

string Products::getPid() {
	return this->pid;
}

void Products::setPid(string pid) {
	this->pid = pid;
}

string Products::getBrand() {
	return this->brand;
}

void Products::setBrand(string brand) {
	this->brand = brand;
}

int Products::getStock() {
	return this->stock;
}

void Products::setStock(int stock) {
	this->stock = stock;
}

int Products::getPrice() {
	return this->price;
}

void Products::setPrice(int price) {
	this->price = price;
}

void Products::productInfo() {
	cout << "| "<< setw(10) << getPid() << " | "<< setw(10) << getBrand() << " | " << "$" << setw(7) << getPrice() << " | " << setw(5)<< getStock() ;
}
